package com.atguigu.gulimall.cart.service;

import com.atguigu.gulimall.cart.vo.Cart;
import com.atguigu.gulimall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {


    CartItem getCartItem(Long skuId);

    void addToCart(Long skuId, Long num) throws ExecutionException, InterruptedException;

    Cart getCart();

    void checkChange(Long skuId, Integer check);

    void countChange(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItem> getCurrentUserCartItems();
}
